package cn.gson.springboot.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gson.springboot.model.dao.OutpatientrecordsDAO;
import cn.gson.springboot.model.pojos.OutpatientRecord;

@Service
@Transactional(rollbackFor=Exception.class)
public class Outpatientrecordsservice {//改service注解在ghlxcontroller
	@Autowired
	private OutpatientrecordsDAO outdao;
	
	
	//病历新增
	public OutpatientRecord addbl(OutpatientRecord out) {
		return outdao.save(out);
	}
}
